const app = getApp();

Component({
  behaviors: [getApp().globalData.behavior],
  data: {
    // background: [
    //   {
    //     url: 'https://alifei02.cfp.cn/creative/vcg/nowater800/new/VCG211290261991.jpg'
    //   },
    //   {
    //     url: 'https://tenfei01.cfp.cn/creative/vcg/nowarter800/new/VCG41N1012071422.jpg'
    //   },
    //   {
    //     url: 'https://tenfei04.cfp.cn/creative/vcg/nowater800/new/VCG211295072049.jpg'
    //   }
    // ],
    autoplay: true,
    interval: 2300,
    duration: 800,
    currentSwiperIndex: 0,
    current: 0,
  },
  methods: {
    onSwiperChange(event, t) {
      const { current } = event.detail
      this.setData({ currentSwiperIndex: current })
    }
  }
});
